import type {
  IEmlParser,
  MailData,
  MailEnvelope,
  InlineImage,
  Attachment,
  Mime,
  IBuffer,
} from "../api";
import { parseMime2, serializeMail } from "../utils/mime";

export class EmlParser implements IEmlParser {
  async mimeParse(
    content: string | IBuffer
  ): Promise<Mime> {
    const mime = await parseMime2(content);
    return mime;
  }
}

